<div class="wrapper">
  <?php $this->partial('Common/mainHeader');?>

  <?php $this->partial('Common/mainSiderbar');?>

  <div class="content-wrapper">
    <section class="content-header">
          <h1>推荐<small>我的推荐</small></h1>
      <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-fw fa-home"></i> 首页</a></li>
        <li class="active"> 我的推荐</li>
      </ol>
    </section>
    <div class="content">
      <div class="box">
        <div class="box-header with-border"><h3 class="box-title">我的推荐</h3></div>

        <div class="box-body">
          <table class="table table-bordered">
            <tbody>
              <tr>
                <th>会员编号</th>
                <th>真实姓名</th>
                <th>会员状态</th>
                <th>会员级别</th>
                <th>注册时间</th>
              </tr>
              <?php foreach($pagerUsers as $user) { ?>
              <tr>
                <td><?php echo $user -> user_code; ?></td>
                <td><?php echo $user -> real_name; ?></td>
                <td><?php echo $this -> config -> user_status[$user -> status]; ?></td>
                <td><?php echo $this -> config -> user_level[$user -> user_level]; ?></td>
                <td><?php echo date('Y-m-d', $user -> create_time); ?></td>
              </tr>
              <?php } ?>
            </tbody>
          </table>
        </div>

        <div class="box-footer clearfix">
          <?php if($pagerUsers -> haveToPaginate()) { ?>
          <ul class="pagination pagination-sm no-margin pull-right">
            <?php echo $pagerUsers -> getLayout(); ?>
          </ul>
          <?php } ?>
        </div>
      </div>
    </div>
  </div>

  <?php $this->partial('Common/mainFooter');?>
</div>

<?php $this->partial('Common/mainScript');?>